package com.tiantianyuegou.adapter;

import android.app.Activity;
import android.content.Context;

import com.trouble.framework.adapter.BaseAdapterHelper;
import com.trouble.framework.adapter.QuickAdapter;
import com.tiantianyuegou.R;

/**
 * 店铺详情
 * Created by huyang on 2016/1/6 0006.
 */
public class StoreAdapter extends QuickAdapter<StoreAdapter.GlobalMenuItem> {

    public StoreAdapter(Context context) {
        super(context, R.layout.grid_item_tuijian);
        data.add(new GlobalMenuItem(R.mipmap.cuxiao, "ssssssssss", null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao, "ssssssssss", null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao, "ssssssssss", null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao,"ssssssssss",null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao, "ssssssssss", null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao,"ssssssssss",null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao, "ssssssssss", null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao,"ssssssssss",null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao, "ssssssssss", null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao,"ssssssssss",null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao, "ssssssssss", null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao,"ssssssssss",null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao, "ssssssssss", null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao,"ssssssssss",null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao, "ssssssssss", null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao,"ssssssssss",null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao, "ssssssssss", null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao,"ssssssssss",null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao, "ssssssssss", null));
        data.add(new GlobalMenuItem(R.mipmap.cuxiao,"ssssssssss",null));

    }

    @Override
    protected void convert(BaseAdapterHelper baseAdapterHelper, GlobalMenuItem globalMenuItem) {

    }

    public static class GlobalMenuItem {
        public int iconResId;
        public String label;
        public Class<? extends Activity> clazz;

        public GlobalMenuItem(int resId, String label) {
            this.iconResId = resId;
            this.label = label;
        }

        public GlobalMenuItem(int resId, String label, Class<? extends Activity> clazz) {
            this.iconResId = resId;
            this.label = label;
            this.clazz = clazz;
        }
    }
}
